Mechanism of opening and closing of stomata